<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        html,body{
            width: 100%;
            height: 100%;
        }
        /* 让容器的高宽充满百分之百 */
        body{
            background-color: pink;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
        }
        .heart{
            width: 200px;
            height: 200px;
            background-color: rgb(232, 41, 104);
            position: relative;
            transform: rotate(45deg);
            box-shadow: 0 0 30px red;
            animation: heart 1.5s linear 0s  alternate-reverse infinite; 
        }
        .heart::before{
            content: "";
            width: 200px;
            height: 100px;
            background-color:rgb(232, 41, 104);
            position: absolute;
            left: 0;
            top:-99px;
            border-radius: 100px 100px 0 0;
            box-shadow: 0 0 30px rgb(232, 41, 104);
        }
        .heart::after{
            content: "";
            width: 100px;
            height: 200px;
            background-color:rgb(232, 41, 104);
            position: absolute;
            left: -99px;
            top:0;
            border-radius: 100px 0px 0px 100px;
            box-shadow: 0  0 30px rgb(232, 41, 104);
        }
        
        @keyframes heart{
            0%{
                transform: rotate(45deg) scale(0.6);
            }
           
            100%{
                transform: rotate(45deg) scale(2.0);
            }

        }
        p{
            position: absolute;
            top: 100px;
            color:brown;
            font-size: 50px;
        }
    </style>
</head>
<body>
    <div class="heart"></div>
    <p></p>
</body>
</html>